<?php 
$this->beginWidget('system.web.widgets.CClipWidget', array('id'=>'cl-nav'));
$urlCurr = $_SERVER['REQUEST_URI'];
$controller = Yii::app()->controller->getId();
$action = Yii::app()->controller->getAction()->getId();
$this->widget('webroot.widgets.iNavbar', array(
		'type'=>'', // null or 'inverse'
		'collapse'=>true, // requires bootstrap-responsive.css
		'items'=>array(
				array(
					'class'=>'bootstrap.widgets.TbMenu',
					'htmlOptions'=>array('class'=>'flat-list'),
					'items'=>array(
							array('label'=>Helper::translate('srbac','Managing auth items'),'icon'=>'list', 'url'=>Yii::app()->createUrl('/srbac/authitem/manage'), 'visible'=>!Yii::app()->user->isGuest, 'active'=>($controller=='authitem' && $action=='manage')?true:false),
							array('label'=>Helper::translate('srbac','Assign to users'), 'icon'=>'ok-sign', 'url'=>Yii::app()->createUrl('/srbac/authitem/assign'), 'visible'=>!Yii::app()->user->isGuest, 'active'=>($controller=='authitem' && $action=='assign')?true:false),
							array('label'=>Helper::translate('srbac','User\'s assignments'), 'icon'=>'user','url'=>Yii::app()->createUrl('/srbac/authitem/assignments'), 'visible'=>!Yii::app()->user->isGuest, 'active'=>($controller=='authitem' && $action=='assignments')?true:false),
					),
				),
		),
));
$this->endWidget();
?>